package com.yx.system.service;

import com.yx.common.utils.Query;
import com.yx.system.entity.TdCollection;

import java.util.List;
import java.util.Map;

public interface TdCollectionService {
    void deleteByPrimaryKey(Integer ids[]);

    int insert(TdCollection record);

    int insertSelective(TdCollection record);

    TdCollection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdCollection record);

    int updateByPrimaryKey(TdCollection record);

    /**
     * 查询书籍列表
     */
    List<TdCollection> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 按书籍iD和用户ID查询列表
     */
    List<TdCollection> isCollection(Map<String, Object> map);
    

    TdCollection findByBookidAndUserUUIDAndExist(String uuid, Integer bookid);

    List<TdCollection> queryList1(Query query);

    int queryTotal1(Query query);

    TdCollection findByBookidAndUserUUIDAnddelete(String uuid, Integer bookid);

    Integer findTotalByUseruuid(String uuid);

    TdCollection findByUserAndBook(String uuid, Integer bookid);
}
